package com.blog.util;

import java.util.Date;

public class Util {

    public static String getNowDateString() {
        Date date = new Date();
        String createTime = (date.getYear() + 1900) + "-" + (date.getMonth() + 1) + "-" + date.getDate() + " ";
        createTime += date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
        return createTime;
    }

}
